package com.lsa.expression.parser.javacc;

import java.io.StringBufferInputStream;

public class JavaCCParser
{
    public Node parse(String expr) throws ParseException
    {
        StringBufferInputStream sib = new StringBufferInputStream(expr);
        ExprCalc parser = new ExprCalc(sib);
        parser.Expression();
        return parser.jjtree.rootNode();
    }
}
